package io.lvdaxian.handwriting.demo01;

public class OuterClass001 {
  private String secret = "I'm a secret";
  
  public void outerMethod() {
    final String name = "lihh";
    int age = 20;
    
    class InnerClass {
      public void display() {
        System.out.println(secret);
        System.out.println(name);
        System.out.println(age);
      }
    }
    InnerClass inner = new InnerClass();
    inner.display();
  }
  
  public static void main(String[] args) {
    new OuterClass001().outerMethod();
  }
}
